package 集合;


import cn.hutool.bloomfilter.BloomFilterUtil;
import cn.hutool.bloomfilter.bitMap.BitMap;
import cn.hutool.bloomfilter.filter.*;
import cn.hutool.core.util.NumberUtil;
import com.xiaoleilu.hutool.bloomFilter.BloomFilter;

/**
 * @author:谢君臣
 * @Date:2021/9/4-15:11
 * @version:1.0
 * @function:
 */
public class 布隆过滤器 {
    public static void main(String[] args) {
        BloomFilter bitMap = (BloomFilter) BloomFilterUtil.createBitMap(10000);
        if (bitMap.contains("asdfa")) {
            // 存在

        }else {
            System.out.println("no");
        }

    }
}
